<div class="ContactPanel wrapper" ms-controller="addMaterialPurchase"
	style="width: 100%; background-color: white;">
	<div style="border-bottom: solid 1px; height: 30px">
		<div style='float: left; width: 40%;'>
			<h2>
				<Strong>采购单</Strong>
			</h2>
		</div>
		<div class="fr" style="float: right; width: 20%">
			<input type="button" id="save" class="ui-btn mrb" name="Submit"
				value="保存"> <input type="button" id = "close" class="ui-btn mrb"
				name="Submit" data-type="close" href="index.html#!/117" value="返回">
		</div>
	</div>
	<div id="detailInfo">
		<form id="materialPurchaseFrom" class="form-dl" style="width: 99%;">
			<div style="height: 130px;">
				<table style="float: left; width: 100%;">
					<tr>
						<td style="color: red"><label>采购单号*：</label></td>
						<td><input type="text" id="deliveryNoteNo" readOnly name="mustAdd"
							class="mustAdd" ms-duplex="materialPurchaseInfo.purchaseSingleNo" style="width: 100%" /></td>

						<td><label>供应商：</label></td>
						<td><input type="text" id="supplier" name="supplier"
							class="text required" style="width: 100%" ms-duplex="materialPurchaseInfo.supplier"/></td>


						<td><label>总件数：</label></td>
						<td><input type="number"  name="totalQuantity"
							class="text required"  style="width: 100%"
							ms-duplex="materialPurchaseInfo.totalQuantity" /></td>

					</tr>
				<tr>	<td><label>总金额：</label></td>
					<td><input type="number" id="totalAmount" name="totalAmount"
							   class="text required"  style="width: 100%"
							   ms-duplex="materialPurchaseInfo.amount" /></td>
				</tr>
				</table>
			</div>
			</form>
	</div>
	<!--dialog-->
	<div id="editGoodsDetail" style="display: none;" >
		<form id="userForm" class="form-dl" style="width: 99%;">
			<div style="height: 130px;">
				<table style="float: left;">
					<tr>
						<td><label style="color: red">品名*：</label></td>
						<td><input type="text" id="name" name="name"
								   class="text required" style="width: 100%" ms-duplex="materialsPurchaseDetail.name"/></td>
					</tr>
					<tr>
						<td><label>规格：</label></td>
						<td><input type="text" id="model" name="model"
								   class="text required"  style="width: 100%"
								   ms-duplex="materialsPurchaseDetail.model" readonly /></td>
					</tr>
					<tr>
						<td><label>颜色：</label></td>
						<td><input type="text" id="color" name="color"
								   class="text required"  style="width: 100%"
								   ms-duplex="materialsPurchaseDetail.color" readonly /></td>
					</tr>
					<tr>
						<td><label>计量单位：</label></td>
						<td><input type="text" id="unit" name="unit"
								   class="text required"  style="width: 100%"
								   ms-duplex="materialsPurchaseDetail.unit" readonly /></td>
					</tr>
					<tr>
						<td><label>单价：</label></td>
						<td><input type="number" id="unitPrice" name="unitPrice"
								   class="text required"  style="width: 100%"
								   ms-duplex="materialsPurchaseDetail.unitPrice"/></td>
					</tr>
					<!--<tr>-->
						<!--<td><label>币制：</label></td>-->
						<!--<td><input type="text" id="currency" name="currency"-->
								   <!--class="currency" ms-duplex="materialsPurchaseDetail.currency"-->
								   <!--style="width: 100%" readonly/></td>-->
					<!--</tr>-->
					<tr>
						<td><label style="color: red">数量：</label></td>
						<td><input type="number" id="totalQuantity" name="totalQuantity"
								   class="totalQuantity" ms-duplex="materialsPurchaseDetail.totalQuantity"
								   style="width: 100%" /></td>
					</tr>
				</table>
			</div>
			</form>
	</div>
	<div class="grid-wrap" style="width: 100%">
		<input type="button" id="addGoods" class="ui-btn ui-btn-sp mrb"
			name="Submit" value="添加商品" />

		<table id="grid"></table>
		<div id="page"></div>
	</div>
</div>
